<template>
  <div id="app">
    <!-- 利用Vue内置组件 keep-alive 进行缓存 -->
    <keep-alive include="HomePage">
      <router-view class="body" />
    </keep-alive>
    <RouterView class="footer" name="tabbar" />
  </div>
</template>
<style lang="less" scoped>
#app {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  .body {
    flex: 1;
    overflow: hidden;
  }
  .footer {
    height: 50px;
  }
}
</style>
